﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Engine.Dtd {
    internal static class XmlChar {
        public static bool IsXmlChar(int ch) {
            return ch == 0x9 || ch == 0xA || ch == 0xD ||
                (0x20 <= ch && ch <= 0xD7FF) ||
                (0xE000 <= ch && ch <= 0xFFFD) ||
                (0x10000 <= ch && ch <= 0xEFFFF);
            }
        }
    }
